<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-9-26
 * Time: 上午11:25
 */

namespace common\data;


class Enum
{
    const IS_YSE = "y";
    const IS_NO = "n";

    public static function getIsYes()
    {
        return [
            self::IS_YSE => "是",
            self::IS_NO => "否",
        ];
    }

    const EMAIL_SEND_TYPE_SIGNUP = 1;
    const EMAIL_SEND_TYPE_LOGIN = 2;
    const EMAIL_SEND_TYPE_RESET_PASSWORD = 3;

    public static function getEmailSendTypeDesc()
    {
        return [
            self::EMAIL_SEND_TYPE_SIGNUP => "注册",
            self::EMAIL_SEND_TYPE_LOGIN => "登录",
            self::EMAIL_SEND_TYPE_RESET_PASSWORD => "重置密码",
        ];
    }
}